mirror of
https://github.com/mbirth/wiki.git
synced 2024-11-09 13:16:45 +00:00
Fixed backticks.
This commit is contained in:
parent
8ca2f2ac67
commit
30758b679e
@ -18,7 +18,7 @@ event.d script
|
|||||||
This is an event.d-script for the new Ubuntu [Upstart](http://upstart.ubuntu.com/).
|
This is an event.d-script for the new Ubuntu [Upstart](http://upstart.ubuntu.com/).
|
||||||
|
|
||||||
The event gets started/respawned on runlevels 2-5. If you change to level 0, 1 or 6, the process gets stopped/killed.
|
The event gets started/respawned on runlevels 2-5. If you change to level 0, 1 or 6, the process gets stopped/killed.
|
||||||
Manual start/stop works through the same commands ˋstartˋ and ˋstopˋ. With ˋstatusˋ you can check the status.
|
Manual start/stop works through the same commands `start` and `stop`. With `status` you can check the status.
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
# manages Solr search engine
|
# manages Solr search engine
|
||||||
@ -41,7 +41,7 @@ init.d script
|
|||||||
|
|
||||||
This does the same using the traditional init.d-way.
|
This does the same using the traditional init.d-way.
|
||||||
|
|
||||||
After creation of the script in ˋ/etc/init.dˋ you also have to make the symlinks in the ˋrc.2ˋ..ˋrc.5ˋ-directories.
|
After creation of the script in `/etc/init.d` you also have to make the symlinks in the `rc.2`..`rc.5`-directories.
|
||||||
|
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
@ -12,11 +12,11 @@ tags:
|
|||||||
- partitioning
|
- partitioning
|
||||||
---
|
---
|
||||||
After removal of the first primary partition, you might notice, that the names of the remaining partitions didn't
|
After removal of the first primary partition, you might notice, that the names of the remaining partitions didn't
|
||||||
change. ˋ/dev/sda2ˋ stays ˋ/dev/sda2ˋ. To renumber the partition, use ˋfdiskˋ and create a new primary partition no. 1
|
change. `/dev/sda2` stays `/dev/sda2`. To renumber the partition, use ˋfdiskˋ and create a new primary partition no. 1
|
||||||
which is located behind ˋsda2ˋ. You might want to delete your swap partition, create a new one in partition slot no. 1.
|
which is located behind `sda2`. You might want to delete your swap partition, create a new one in partition slot no. 1.
|
||||||
|
|
||||||
Now enter the expert menu of fdisk and type <kbd>f</kbd> to fix the partition table. The partitions will be renumbered
|
Now enter the expert menu of fdisk and type <kbd>f</kbd> to fix the partition table. The partitions will be renumbered
|
||||||
according to their position on disk. After that delete the temporary partition and re-create your swap. Don't forget to
|
according to their position on disk. After that delete the temporary partition and re-create your swap. Don't forget to
|
||||||
write the new partition table to disk.
|
write the new partition table to disk.
|
||||||
|
|
||||||
Afterwards, update your ˋ/boot/grub/menu.lstˋ, maybe ˋ/etc/fstabˋ and do a ˋgrub-installˋ.
|
Afterwards, update your `/boot/grub/menu.lst`, maybe `/etc/fstab` and do a `grub-install`.
|
||||||
|
@ -10,8 +10,8 @@ tags:
|
|||||||
- linux
|
- linux
|
||||||
- mc
|
- mc
|
||||||
---
|
---
|
||||||
If Midnight Commander needs several seconds to startup, check the ˋinterfacesˋ line in your ˋsmb.confˋ. According to [this page](http://osdir.com/ml/gnome.apps.mc.general/2006-09/msg00057.html),
|
If Midnight Commander needs several seconds to startup, check the `interfaces` line in your `smb.conf`. According to [this page](http://osdir.com/ml/gnome.apps.mc.general/2006-09/msg00057.html),
|
||||||
the built-in Samba code of *mc* is outdated and doesn't recognize device names like ˋeth0ˋ or ˋloˋ as the newer
|
the built-in Samba code of *mc* is outdated and doesn't recognize device names like `eth0` or `lo` as the newer
|
||||||
*smbclient* does. So it tries to resolve those into IPs which takes ages until they time out.
|
*smbclient* does. So it tries to resolve those into IPs which takes ages until they time out.
|
||||||
|
|
||||||
Replace the devices by their respective netmasks (e.g. ˋ192.168.1.0/24ˋ) and *mc* will startup instantly.
|
Replace the devices by their respective netmasks (e.g. `192.168.1.0/24`) and *mc* will startup instantly.
|
||||||
|
@ -13,11 +13,11 @@ tags:
|
|||||||
Preparing to go asleep
|
Preparing to go asleep
|
||||||
======================
|
======================
|
||||||
|
|
||||||
To make Linux not shut down the network interface upon *halt*, edit the file ˋ/etc/init.d/haltˋ, find the line with the
|
To make Linux not shut down the network interface upon *halt*, edit the file `/etc/init.d/halt`, find the line with the
|
||||||
ˋhaltˋ command and remove the parameter ˋ-iˋ if there. This parameter does ˋifdownˋ on all networking interfaces. As the
|
`halt` command and remove the parameter `-i` if there. This parameter does `ifdown` on all networking interfaces. As the
|
||||||
manpage for *halt* states, this is unneccessary for newer kernels - also it disables WOL.
|
manpage for *halt* states, this is unneccessary for newer kernels - also it disables WOL.
|
||||||
|
|
||||||
The second step is to make sure, your card supports WOL. To find out, issue the ˋsudo ethtool eth0ˋ command. You should
|
The second step is to make sure, your card supports WOL. To find out, issue the `sudo ethtool eth0` command. You should
|
||||||
get something like this:
|
get something like this:
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
@ -41,7 +41,7 @@ Settings for eth0:
|
|||||||
Link detected: no
|
Link detected: no
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
The important lines are the ˋSupports Wake-onˋ and ˋWake-onˋ ones. The "ˋgˋ" means it is enabled for MagicPacket™.
|
The important lines are the `Supports Wake-on` and `Wake-on` ones. The "`g`" means it is enabled for MagicPacket™.
|
||||||
If not, you should manually call the command:
|
If not, you should manually call the command:
|
||||||
|
|
||||||
ethtool -s eth0 wol g
|
ethtool -s eth0 wol g
|
||||||
@ -62,4 +62,4 @@ For a PC in a Class C network, use a call like this:
|
|||||||
This would send the packet to the 192.168.1.x subnet and the PC with the specified MAC address should wake up.
|
This would send the packet to the 192.168.1.x subnet and the PC with the specified MAC address should wake up.
|
||||||
|
|
||||||
**Note:** Some nVidia chipsets require the MAC address to be specified in reverse order. In the example this would
|
**Note:** Some nVidia chipsets require the MAC address to be specified in reverse order. In the example this would
|
||||||
be ˋfe:ca:ef:be:ad:deˋ.
|
be `fe:ca:ef:be:ad:de`.
|
||||||
|
@ -10,7 +10,7 @@ tags:
|
|||||||
- linux
|
- linux
|
||||||
- fonts
|
- fonts
|
||||||
---
|
---
|
||||||
After adding some fonts to the ˋ/usr/share/fontsˋ directories, you have to re-login to see the added fonts. To update
|
After adding some fonts to the `/usr/share/fonts` directories, you have to re-login to see the added fonts. To update
|
||||||
the fontcache without a log-cycle, use the following command:
|
the fontcache without a log-cycle, use the following command:
|
||||||
|
|
||||||
sudo fc-cache -fv
|
sudo fc-cache -fv
|
||||||
|
@ -12,9 +12,9 @@ tags:
|
|||||||
- monitoring
|
- monitoring
|
||||||
- networking
|
- networking
|
||||||
---
|
---
|
||||||
To let the *syslogd* also receive messages from your local network, edit the file ˋ/etc/default/syslogdˋ and modify the
|
To let the *syslogd* also receive messages from your local network, edit the file `/etc/default/syslogd` and modify the
|
||||||
last line so that it looks like this:
|
last line so that it looks like this:
|
||||||
|
|
||||||
SYSLOGD="-r"
|
SYSLOGD="-r"
|
||||||
|
|
||||||
Restart the *sysklogd* and watch your ˋ/var/log/messagesˋ.
|
Restart the *sysklogd* and watch your `/var/log/messages`.
|
||||||
|
@ -12,11 +12,11 @@ tags:
|
|||||||
- netbios
|
- netbios
|
||||||
- wins
|
- wins
|
||||||
---
|
---
|
||||||
To enable lookup of WINS-names in Ubuntu, edit the file ˋ/etc/nsswitch.confˋ and find the line:
|
To enable lookup of WINS-names in Ubuntu, edit the file `/etc/nsswitch.conf` and find the line:
|
||||||
|
|
||||||
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
|
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
|
||||||
|
|
||||||
Append ˋwinsˋ to the end of the line so that it looks like this:
|
Append `wins` to the end of the line so that it looks like this:
|
||||||
|
|
||||||
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 wins
|
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 wins
|
||||||
|
|
||||||
|
@ -12,16 +12,16 @@ tags:
|
|||||||
At [Ubuntu Unleashed](http://www.ubuntu-unleashed.com/2008/04/tweak-and-optimize-ubuntu-linux-boot.html) you can find a
|
At [Ubuntu Unleashed](http://www.ubuntu-unleashed.com/2008/04/tweak-and-optimize-ubuntu-linux-boot.html) you can find a
|
||||||
document about different settings to optimize startup times of the system and applications itself.
|
document about different settings to optimize startup times of the system and applications itself.
|
||||||
|
|
||||||
The ˋnoatimeˋ and ˋnodiratimeˋ settings are unneccessary in Hardy as the default option ˋrelatimeˋ only updates the
|
The `noatime` and `nodiratime` settings are unneccessary in Hardy as the default option `relatime` only updates the
|
||||||
*access time* if the file has been modified after the last access timestamp.
|
*access time* if the file has been modified after the last access timestamp.
|
||||||
|
|
||||||
You can enable the full power of the [upstart](https://launchpad.net/upstart) manager by enabling multi-threading.
|
You can enable the full power of the [upstart](https://launchpad.net/upstart) manager by enabling multi-threading.
|
||||||
In ˋ/etc/init.d/rcˋ at line 24, set ˋCONCURRENCY=shellˋ. But beware of slight problems upon booting. Some services might
|
In `/etc/init.d/rc` at line 24, set `CONCURRENCY=shell`. But beware of slight problems upon booting. Some services might
|
||||||
be started before depending services are. Also some lines upon startup are printed twice. If you have problems
|
be started before depending services are. Also some lines upon startup are printed twice. If you have problems
|
||||||
getting your machine up and running, change it back to ˋnoneˋ.
|
getting your machine up and running, change it back to `none`.
|
||||||
|
|
||||||
Another nice feature is adding the ˋprofileˋ option to the kernel line upon boot. The bootup will take longer than
|
Another nice feature is adding the `profile` option to the kernel line upon boot. The bootup will take longer than
|
||||||
usual but the readahead-daemon will catalog all needed files and on the next boot (without that parameter), all needed
|
usual but the readahead-daemon will catalog all needed files and on the next boot (without that parameter), all needed
|
||||||
files will be preloaded before boot.
|
files will be preloaded before boot.
|
||||||
|
|
||||||
On Desktops with much RAM, the ˋ[preload](http://sf.net/projects/preload)ˋ daemon also speeds up working.
|
On Desktops with much RAM, the `[preload](http://sf.net/projects/preload)` daemon also speeds up working.
|
||||||
|
Loading…
Reference in New Issue
Block a user