FANDOM


( )
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{nav box|Sysadmin}}
+
{{mini wiki|How to Linux|How to Linux/commons}}
+
<!-- Do NOT edit ABOVE this line! -->
An Ubuntu live CD can save a regular sysadmin alot of trouble. It boots an entire Ubuntu Linux system right off the CD, without touching the harddrive. It can then be used for backups without requiring the system to even have an operating system.
 
 
== Enable write support for NTFS ==
 
 
Ubuntu 7.04 comes with FAT read/write support and NTFS read support built-in. NTFS write support is available if you install and enable it.
 
 
=== The GUI way ===
 
 
* Go to Applications -> Add/Remove...
 
* In the upper right corner, choose All available applications
 
* In the search box type: NTFS
 
* Check the NTFS Configuration Tool
 
* When asked to install the community maintained software, click Install
 
* Check the NTFS Configuration Tool again (must be a bug that it removes the checkmark after installing the extra repositories)
 
* Click OK
 
* Go to Applications -> System Tools -> NTFS Configuration Tool (might have to ALT+F2 and "killall gnome-panel" to get it to show there)
 
* Enable write support for the device types you need
 
* Click OK
 
 
=== The CLI way ===
 
 
<pre>
 
# Enable universe and multiverse if not enabled already
 
sudo sed -i 's/^deb \([^ ]*\) \([^ ]*\) main restricted$/deb \1 \2 main restricted universe multiverse/' /etc/apt/sources.list
 
sudo apt-get update
 
# Setup and install the actual write support for NTFS
 
sudo apt-get install ntfs-config
 
sudo ntfs-config
 
</pre>
 
 
== Set the keyboard layout ==
 
 
=== The CLI way ===
 
Find the layout out of the available ones:
 
<pre>
 
ls /usr/share/X11/xkb/symbols
 
</pre>
 
 
Change the layout, e.g. to the danish(dk) layout:
 
<pre>
 
setxkbmap dk
 
</pre>
 
 
== Restore a grub MBR ==
 
 
=== The CLI way ===
 
Find the partition that has the root of your linux installation (usually the only one with partition ID 83):
 
<pre>
 
sudo fdisk -l
 
</pre>
 
 
Mount it and install grub on the MBR (replace sda and sda1 with the appropriate in your case):
 
<pre>
 
sudo mkdir /mnt/hd
 
sudo mount -t ext3 /dev/sda1 /mnt/hd
 
sudo grub-install --root-directory=/mnt/hd /dev/sda
 
</pre>
 
 
== Network speed and duplex ==
 
 
=== Info ===
 
 
Show the status of the network cards' current speed and duplex setting and whether it was auto-negotiated:
 
<pre>
 
mii-tool
 
</pre>
 
 
Show each network cards capabilities:
 
<pre>
 
ethtool eth0 && ethtool eth1
 
</pre>
 
 
=== Change speed and duplex ===
 
 
Set eth0 to 10half manually (doesn't last a reboot):
 
<pre>
 
ethtool -s eth0 speed 10 duplex half autoneg off
 
</pre>
 
 
For setting speed and duplex that will last a reboot see [http://ubuntuforums.org/showthread.php?t=482795 this thread on the Ubuntu forum]
 
 
==Server monitor==
 
 
===The CLI way===
 
This small script counts the seconds of downtime (remember to change the IP address):
 
<pre>
 
i=0
 
while [ true ]; do
 
ping -W1 -c1 192.168.100.173 1> /dev/null
 
if [ $? -eq 0 ]; then
 
echo Running...
 
sleep 1
 
else ((i++))
 
echo Error. "Not running! Downtime: $i seconds"
 
fi
 
done
 
</pre>
 
   
 
==Versions==
 
==Versions==
Line 8: Line 8:
 
*[[Ubuntu 6.06 (Dapper Drake)]]
 
*[[Ubuntu 6.06 (Dapper Drake)]]
   
== External links ==
 
* [http://ubuntu.com Ubuntu's official website]
 
   
   

Latest revision as of 21:59, March 13, 2015

VersionsEdit

Community content is available under CC-BY-SA unless otherwise noted.