Loading...
 

Linux

Some basic tips for Linux that could help for Tiki if you don't frequently use Linux

Questions

Answers

Question: How do I add users to my linux box via the console?
Answer: 

First find it
slocate sudoers
It's probably in /etc directory
vi to sudoers
and then add your users with something like this
mynewuser ALL= NOPASSWD: ALL

Question: How do I find my IP address on a Linux box?
Answer: 

/sbin/ifconfig
will produce the below, and note I'm on a network.

eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:B9
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24677 errors:1 dropped:0 overruns:0 frame:0
TX packets:24079 errors:1 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:100
RX bytes:20491270 (19.5 Mb) TX bytes:2869058 (2.7 Mb)
Interrupt:11 Base address:0x5000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2775 errors:0 dropped:0 overruns:0 frame:0
TX packets:2775 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1016943 (993.1 Kb) TX bytes:1016943 (993.1 Kb)

Question: Locate is finding some stuff I know I deleted. How do I update the linux file system?
Answer:  updatedb (thanks mose!)
Question: How do I locate stuff under Linux?
Answer: 

Try
locate *.tpl | less
That way when you get a bunch of files matching your search you can step through the list. Be more specific like
locate *mod*.tpl

Question: What's the best way to find stuff under linux... I know the directory but not necessarily where in the directory.
Answer: 

In case you know where to search, try
find . -name "*user*"
When in tiki directory.

Question: Under Apache, how do i find the running user as it states in http://tikiwiki.org/tiki-index.php?page=InstallTikiDoc?
Answer: 

Mose answers:
grep user /etc/httpd.conf

Question: How do I rename the tiki folder from tikiwikiRCversionXXX to tiki?
Answer: 

$: mv tikiwikiRCversionXXX tiki
check
$man mv for more help.

Question: How do I go back to my last used directory under linux?
Answer:  cd - works just fine! Give it a shot!

Upcoming Events

1)  25 Jun 2024 16:00 GMT-0000
Data umbrella : Build Your First Database Web App with (open source) Tiki Trackers
2)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5) 
Tiki birthday
6)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
8)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting