Skip to content

Commit 9d8547f

Browse files
Merge pull request #1328 from system76/thomas-zimmerman-patch-1
Update log-files.md
2 parents 36a1d21 + 05599b1 commit 9d8547f

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

content/log-files.md

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,31 @@ Ubuntu - <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>T</kbd>
8080
From there, you can enter the following commands:
8181

8282
```bash
83-
cd ~/
84-
mkdir ~/system76
85-
journalctl > ~/system76/journal.log
86-
dmesg > ~/system76/dmesg.log
87-
cp ~/.local/share/xorg/Xorg.0.log ~/system76/Xorg.0.log 2> /dev/null
88-
sudo dmidecode > ~/system76/dmidecode
89-
sudo lspci -vv > ~/system76/lspci.log
90-
sudo lsusb -vv > ~/system76/lsusb.log
83+
cat << "EOF" > make-logs.sh
84+
#!/bin/bash
85+
echo "Creating Logs"
86+
mkdir -p ~/system76/apt
87+
cp -r /etc/apt ~/system76/apt
88+
mkdir -p ~/system76/apt/logs
89+
cp -r /var/log/apt ~/system76/apt/logs
90+
journalctl --since="4 days ago" > ~/system76/journal.log
91+
sudo dmesg > ~/system76/dmesg.log
92+
cp ~/.local/share/xorg/Xorg.0.log ~/system76/Xorg.0.log 2>/dev/null
93+
sudo dmidecode > ~/system76/dmidecode 2>/dev/null
94+
sudo lspci -vv > ~/system76/lspci.log 2>/dev/null
95+
sudo lsusb -vv > ~/system76/lsusb.log 2>/dev/null
9196
uname -a > ~/system76/uname.log
92-
cp /etc/os-release ~/system76/os-release
93-
lsblk -f > ~/system76/lsblk.log
94-
df -h > ~/system76/df.log
95-
cp /etc/fstab ~/system76/fstab.log
96-
tar czf system76-log.tgz ~/system76/*
97-
rm ~/system76/*
98-
rmdir ~/system76
97+
df -h / > ~/system76/df
98+
lsblk -f > ~/system76/lsblk
99+
cp /etc/fstab ~/system76/fstab 2>/dev/null
100+
cp /etc/os-release ~/system76/os-release 2>/dev/null
101+
upower -d > ~/system76/upower
102+
[ -f /usr/bin/sensors ] && sensors > ~/system76/sensors.log
103+
tar cvzf ~/system76-log.tgz ~/system76/
104+
rm -rf ~/system76/
105+
rm make-logs.sh
106+
EOF
107+
bash make-logs.sh
99108
```
100109

101110
As with the <u>System76 Driver</u> application, the log files will be stored within your home directory.

0 commit comments

Comments
 (0)