Call for enabling HP Pavilion internal softmodem

Did you manage using the internal modem?

View Results

Loading ... Loading ...

Have you managed to get the HP Pavilion internal softmodem to work?

Could you provide a tutorial on how to make it work?

Read the rest of “Call for enabling HP Pavilion internal softmodem” »

No comment
Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge

Cron daemon - recurrent tasks

Restrictions:

if /etc/cron.allow exists only users listed within can access crontab

if it does not exists everybody can use crontab, as far as its name is not listed in /etc/cron.deny (1 user per line)

if this does not exist neither everybody can use crontab

Commands:

to specify the editor to be used
export EDITOR=pico

to edit the crontab list for the current user
crontab -e

to display the crontab list for the current user
crontab -l

to remove the crontab list for the current user
crontab -r

Syntax:

consists in 5 fields for specifying the period and the command to be run

* * * * * command args

[minutes 0-59] [hours 0-23] [day of month 1-31] [month 1-12] [day of week 0-6 sunday=0] [command] [args for the command]

each field is represented by an * and can be a:

- number
- number, number
- number-number (which means an interval)

*/n means “every n times” according to the position of the * (mins, hours, days…)

eg.

*  * */1 * * updatedb

means “run updatedb every day”

email:

by default cron jobs send an email to the user account executing the cronjob. If not needed add at the end of the crontab command
> /dev/null 2>&1

logging:

if you need to log the program output simply add at the end of the command line
> /home/user/program.log
which is the path to the file log.

No comment
Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge

Srinking windows multiboot CDs

programs: nLite, cdimage (Microsoft), cdimage gui (beta3 by Cyberian)

  1. extract the image contents with IsoBuster, UltraISO or equivalent
  2. extract CD Boot Sector with IsoBuster
  3. use nLite to perform changes and shrinks
  4. copy i386/txtsetup.sif to the boot dirrectory CD:/ of the windows version you have tweaked
  5. edit txtsetup.sif and find field
    [setup data] setupsourcepath= “\”
    replacing \ with the actual path on the multiboot CD (i.e. the folder containing the i386 folder of the windows flavor)
  6. use cdimage with the following options
    -tMM/DD/YYYY,HH:MM:DD -g -h -n -b [bootsector file] -x -o -m
    cdimage is a really handy tool capable to prevent multiple identical files to be stored on the CDROM through the creation of kind of symlinks.
  7. test the cd with an emulator like vmware.
  8. note: if things go wrong remember to check in a hexeditor each setupldr.bin file of each windows flavor. This file should have all occourences stating i386/ replaced to the actual path of the windows flavour.

No comment
Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge

Run a program at startup in Windows

- A -

Place the program shortcut into the Autorun folder in Start -> Programs

- B -

Create a key in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

- C -

Run the program as a system service

create with regedit a folder in:

HKLM\system\controlset[n]\services\[servicename]

create a few keys of the following type:

displayname [reg_sz]
errorcontrol [dword]
image patch [expand_sz] - this one keeps the path to the exe
object name [reg_sz] - es. local system
start [dword]
type [dword]

- D -

Run the program as a Winlogon service

HKLM\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon

modify the key
Shell [reg_sz] explorer.exe path_to_program2.exe

No comment
Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge

Managing startup services

Although being much more conservative (and sound) than M$ Windows, also linux systems have several programs and services run at startup. Here is how you can manage, add and remove them.

Startup services scripts location is

(on Ubuntu,Debian,SuSE)
/etc/init.d/

(on RedHat,Fedora)
/etc/rc.d/init.d

you can manually act with those scripts:
sudo /etc/init.d/[script] start/stop/restart/force-reload

scripts managers:

on Ubuntu
System -> Administration -> Services

on Ubuntu,Debian
update-rc.d [daemon] defaults/remove
note: in order for the script to be added (defaults) it must be present in /etc/init.d, on the other hand for the script to be removed it must be delated/renamed from the same folder

on RedHat
redhat-config-services

on Fedora
system-config-services

other useful utilities to accomplish these tasks (installable via apt-get install are:

chkconfig

sysvconfig

bum

No comment
Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge

Runlevels

What is a Runlevel (Wikipedia)

on Ubuntu (being Debian based) starting from 6.10 (Edgy Eft)  Upstart is used as a replacement for the traditional init-process. However traditional init scripts and Upstart’s SysV-rc compatibility tools are still used to start most services and emulate runlevels.

To change the currently running runlevel use
telinit [n]

to change the default runlevel edit
/etc/inittab
at the line ID:[n]:INITDEFAULT:
where [n] is the runlevel number

on Ubuntu (Debian) the following runlevels are used:

0 - Halt
1 - Single user (recovery/maintainance console)
2 - Full multi-user, with display manager as well as console logins
6 - Reboot

on RedHat there are some more:

0 - Halt
1 - Single user
2 - Full multi-user with no networking
3 - Full multi-user, console logins only
4 - Not used/User definable
5 - Full multi-user, with display manager as well as console logins
6 - Reboot

No comment
Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge

aliases

in order to ease work on the terminal shell linux enables you to set aliases of complex commands.

this can be done in different ways

- temporary

alias pico=’pico -w’

or alias pico=”pico -w”

- permanent

editing

$HOME/.bashrc

or $HOME/.bash_aliases

and write down the alias strings at the bottom ot the files

- to show up the current aliases

alias

or alias -p

No comment
Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge

shell Jobs

concept: only 1 foreground program can be running on a shell terminal, however several can run in the background. Here’s how.

Read the rest of “shell Jobs” »

No comment
Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge

fast deployment of secure (APOP) Qpopper email pop3 server

This howto focuses on a fast deployment of secure (APOP) Qpopper email pop3 server.

This howto is just a scratch, and does not want to be complete nor faultless.

Read the rest of “fast deployment of secure (APOP) Qpopper email pop3 server” »

No comment
Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge

find on time basis

this is how to use the find command to search for files on a time basis, i.e. to search for files more recent than a certain date or time

  1. create an empty file with an arbitrary date and time (which will correspond to t0 of our search)
    touch -t yyyymmddhhmm [filename]
  2. find -newer [filename]

you can then use |grep [keyword] to filter the results

No comment
Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge Nobody was Born with Linux Knowledge
  • Page visits

    • 173826
  • Polls

    Did you manage using the internal modem?

    View Results

    Loading ... Loading ...
  • Categories

  • Meta

  • Recent Comments

  • Archives

  • Most Visited

  • Linux On Laptops