Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,210
» Latest member: greg22
» Forum threads: 4,029
» Forum posts: 16,404

Full Statistics

Online Users
There are currently 370 online users.
» 0 Member(s) | 367 Guest(s)
Applebot, Bing, Google

Latest Threads
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 345
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 82,306
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 37,196
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,816
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,276
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 41,175
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 112,106
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 51,009
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 41,247
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 41,316

 
  Linux Mint 13 RC released
Posted by: inittux - 2012-05-18, 09:41 AM - Forum: Linux News - Replies (3)


[Image: linux-mint-logo.jpg]

 

 

Linux Mint 13 RC has been released. Linux 13 is based on ubuntu 12.04

 

 

Here's a link to more detail information if you're interested

Print this item

  Simple guest read, password writable Samba server for a small network
Posted by: hybrid - 2012-05-05, 01:09 PM - Forum: Samba and NFS - Replies (4)


I use Samba on a CentOS 6 server to share files between Windows, Linux and Mac clients. Guest access is allowed to all folders, but is read only, and there are several Samba accounts for writing files to the shares.

 

The purpose of this tutorial is to document, roughly, what my configuration was to set up Samba for sharing a couple of folders on the local network in this way.

 

Install Samba

 



Code:
# yum install samba
# service smb start
# service nmb start
# chkconfig nmb on
# chkconfig smb on




 

Create the sharing directories

 

(In my actual setup, I have used /etc/fstab to mount these directories on separate, large disks, so there's plenty of space. That's beyond the scope of this tutorial, but:

/etc/fstab

UUID=xxxxxxxxx /var/lib/samba/photos ext3 defaults 1 0

UUID=xxxxxxxxx /var/lib/samba/sharedfiles ext3 defaults 1 0

with the real UUIDs substituted in!)

 

Let's create the two directories where our shared files will be stored:

 



Code:
# mkdir /var/lib/samba/photos
# mkdir /var/lib/samba/sharedfiles




 

Add the users and groups

 

In order to support this model of guests having read only access, and granting write access only to known users, we need to have some users and groups set up at the Unix level. The users and groups at the Unix level map to some of the Samba users we will create later.

 

They are separate users -- having a Samba login and password doesn't mean you have to give the user in question shell access, because they are two separate accounts and can have two separate passwords. We simply use the users, as I said, to 'map' the Samba credentials to the Unix permissions on disk.

 

We will also create a group, samba-writers, to allow us to have group write access to the shared folders. I'll add my user account, peter, to this group.

 



Code:
# groupadd samba-writers
# usermod -a -G samba-writers peter




 

Let's set the permissions on our two shared folders for this group:

 



Code:
# chown peter:samba-writers /var/lib/samba/photos
# chown peter:samba-writers /var/lib/samba/sharedfiles
# chmod 775 /var/lib/samba/photos
# chmod 775 /var/lib/samba/sharedfiles




 

Mode '775' on a directory allows the user (peter), the group (samba-writers) to write files, and others (guests) to just read.

 

Now, let's add the mappings between Samba users and Unix users. Open /etc/samba/smbusers using your favourite text editor. I'll use vim throughout this guide.

 



Code:
# vim /etc/samba/smbusers

peter = peter
user1 = user1
user2 = user2




 

The example accounts user1 and user2 will be for our other Samba-enabled accounts.

 

Again, we will create Unix shell accounts for user1 and user2, but use different passwords for SMB and their Unix account, and not share the shell password with the users. They only need and want Samba access, so we won't let them log in to the shell.

 

First, we'll set my password for Samba. A different password from my shell login password.

 



Code:
# smbpasswd -a peter




 

('-a' to add the user for the first time. To change it later, just 'smbpasswd peter')

 

And let's add the other users.

 



Code:
# useradd -G samba-writers -s /sbin/nologin user1
# passwd user1
# smbpasswd -a user1




 

Notice we set the shell to /sbin/nologin. These users, as I've said several times already, we are not allowing shell access.

 



Code:
# useradd -G samba-writers -s /sbin/nologin user2
# passwd user2
# smbpasswd -a user2




 

Set up the configuration files

 

Now that our users are ready for Samba, we need to set up the Samba configuration to share the two folders we've created, and allow the right level of access to users, as well as to guests.

 



Code:
# vim /etc/samba/smb.conf




 

The default CentOS configuration file has quite a lot already in it. Look for the headings, and make these changes:

 

Under Network Related Options:

 



Code:
    workgroup = WORKGROUP
    server string = Server Shared Files

    netbios name = MACHINENAME

    hosts allow = 127. 192.168.0.
    hosts deny = ALL




 

Set WORKGROUP to the workgroup name, if it's configured differently on your Windows clients. (On some older Windows versions, it may need to be MSHOME.)

 

Set MACHINENAME to the name you want the Samba server to have.

 

Finally, we use the 'hosts allow' and 'hosts deny' directives to force Samba only to serve to clients on the local network. In this case, 192.168.0.1 -- 192.168.0.254. You may want to change this to your IP addressing scheme in your network, or remove it to not restrict access to the local network.

 

Under Standalone Server Options:

 



Code:
security = user
passdb backend = tdbsam
map to guest = Bad Password

domain master = yes




 

Under Browser Control Options:

 



Code:
local master = yes
os level = 99
preferred master = yes




 

These directives aren't strictly necessary -- in fact, they may cause conflict if you're doing other Windows networking things on the same workgroup. 'os level = 99', combined with the other options, will force this machine to be the 'local master browser' (LMB) and the 'domain master browser' (DMB).

 

Whichever machine on the network has these roles is responsible for keeping a list of the other machines on the network. Clients use this list to look for other machines that have shared folders available. I've found that forcing my Samba server to be the LMB and DMB, as well as using it as a WINS server, speeds up the time it takes Windows to 'search' for other machines on the network by many many times. (Remember opening 'My Network Places' and clicking 'Show workgroup computers' only to have to wait 15 seconds while Explorer locks up? This avoids that.)

 

In more complex scenarios, you might not want to enable this to avoid conflict. For our small network scenario, it's a useful speed bonus and causes no problems.

 

Under Name Resolution:

 



Code:
wins support = yes




 

Samba becomes a WINS server, which again can help speed things up -- it means you can address other sharing computers by name without waiting for long periods for NetBIOS to resolve the name. (Some more tech info about this, if you're interested.)

 

You may want to configure your Windows machines' 'WINS server' IP address to point to your Samba server to get this benefit. (You might need to configure this in your router's DHCP settings for it to stick to all of them.)

 

Finally, at the bottom of the file, we add our shares:

 



Code:
[sharedfiles]
comment = Shared files for the network
path = /var/lib/samba/sharedstuff
guest ok = yes
writable = no
create mask = 0664
directory mask = 0775
force group = samba-writers
write list = @samba-writers

[Photos]
comment = Shared photos
path = /var/lib/samba/photos
guest ok = yes
writable = no
create mask = 0664
directory mask = 0775
force group = samba-writers
write list = @samba-writers




 

Each folder has its own name in brackets, followed by the options for that folder.

 

We use 'guest ok = yes' to allow guests, but 'writable = no' to make them read only. Anyone in the 'write list' (anyone in the group samba-writers) can write.

 

There are also other settings to set the default permisisons on files ('create mask = 0664', owner read+write, group read+write, others read only) and folders ('directory mask = 0775', owner read+write+enter, group read+write+enter, others read+enter).

 

Once we're done, save that file and quit the editor, and reload Samba:

 



Code:
# service smb restart
# service nmb restart




 

Just make sure your firewall is letting Samba through:

 



Code:
# system-config-firewall-tui




 

And we're ready to test!

 

Accessing the shares

 

Linux

 

Without logging in, we can access the shares by going to smb://machinename (or smb://192.168.0.whatever) in the address bar of the file manager. This works in most file managers.

 

To log in and have write access, you may have luck with a 'Connect to Server' window that lets you type in the username and password, like this one in the Ubuntu 12.04 desktop's File menu.

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2012/post-1019-0-13574400-1336222085.png" data-fileid="1370">[img]<fileStore.core_Attachment>/monthly_05_2012/post-1019-0-13574400-1336222085_thumb.png[/img]</a>

 

I've had problems with write access this way, though, so you may need to use something like smbfs to mount the share permanently.

 

Mac

 

Under recent versions of Mac OS X, the server should appear right away in the Finder's sidebar. Simply click the server name to see the shares and browse them.

 

For write access, simply click the 'Connect As' button in the window and enter your username and password for SMB that you set up earlier.

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2012/post-1019-0-30053800-1336222587.png" data-fileid="1371">[img]<fileStore.core_Attachment>/monthly_05_2012/post-1019-0-30053800-1336222587_thumb.png[/img]</a>

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2012/post-1019-0-26884900-1336222692.png" data-fileid="1372">[img]<fileStore.core_Attachment>/monthly_05_2012/post-1019-0-26884900-1336222692_thumb.png[/img]</a>

 

If you don't see the server in the sidebar, (Lion is more temperamental than Snow Leopard was about this), press ⌘K to bring up the 'Connect to Server' dialogue. Type cifs://machinename or cifs://192.168.0.whatever and click OK to connect.

 

Windows

 

The server should show up in 'Network' for guest access.

 

The best way to log in and have write access, I have found, is to map the shared folder as a network drive. In an Explorer window, click 'Map Network Drive' in the toolbar (it's under the Tools menu on Windows XP and earlier).

 

Choose a drive letter, enter \\machinename\foldername as the path, and make sure you tick to 'Connect using different credentials'.

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2012/post-1019-0-89993900-1336223125.png" data-fileid="1373">[img]<fileStore.core_Attachment>/monthly_05_2012/post-1019-0-89993900-1336223125_thumb.png[/img]</a>

 

You'll then be asked for the username and password, which is the SMB password you set for the account earlier.

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_05_2012/post-1019-0-73397800-1336223138.png" data-fileid="1374">[img]<fileStore.core_Attachment>/monthly_05_2012/post-1019-0-73397800-1336223138_thumb.png[/img]</a>



Attached Files
.png   SMB connect.png (Size: 35.98 KB / Downloads: 364)
.png   connect as button.png (Size: 46.24 KB / Downloads: 329)
.png   password entry.png (Size: 34.96 KB / Downloads: 370)
.png   win_map.png (Size: 52.59 KB / Downloads: 330)
.png   win_pw.png (Size: 29.52 KB / Downloads: 361)
Print this item

  Oracle VM
Posted by: Aripheus - 2012-05-03, 02:59 PM - Forum: How Do I? - Replies (7)


Ok, I am kinda in over my head (I think) I have been trying to follow an out dated utorial because I cant find any up to date how-to's ....

 

in this tutorial I have a file called vm.cfg....it tells me a execute a command called xm create vm.cfg when I do that i get

 

"error: disk isnt accessible"

 

ima noob and i am probably not giving anough information to make n accurate guess :P

 

I guess my question is: Has anyone messed around with oracle vm?? I am running oracle server 3.0.3

 

I typed oracle, and oracle vm in the search box on the site and didnt find anything in the forums.

Print this item

  Cmake 2.8
Posted by: vandellan - 2012-05-03, 09:00 AM - Forum: CentOS - Replies (5)


Hi,

 

I currently have cmake 2.6

 

However, the script I am trying to use with cmake requires 2.8

 

How do I install / upgrade to 2.8? Any help would be greatly appreciated.

Print this item

  Ubuntu 12.04 Released
Posted by: inittux - 2012-04-27, 09:20 AM - Forum: Linux News - Replies (2)


[Image: ubuntu-logo.png]

 

For those of us who like ubuntu LTS releases, ubuntu 12.04 was released yesterday. This release will have support for five years.

There's are a few different images for you to pick from two download.

 

 

IntelX86 and AMD64

 

Desktop Install: for those running ubuntu on your desktop

Alternate Install: for those wanting to running ubuntu on your desktop but want to encrypt and setup lvm during install and several other tools.

Server Install: for those wanting to run ubuntu as a server

 

http://www.ubuntu.com/download

Print this item

  How to get virtualbox to use usb
Posted by: littleslayer15 - 2012-04-27, 02:12 AM - Forum: How Do I? - Replies (3)

I have USB enabled in VB and VB detects my flash drive but whenever I plug my flash drive in, windows 7 doesn't see it.

Print this item

  MTP for Android Smarthone
Posted by: noob.fl - 2012-04-18, 07:04 PM - Forum: Filesystem Management - Replies (3)


Salve

 

for me personal, i dont like gnome (to big, and not a nice look) and personal i hate the Nautilus... special when i run it under xfce. But - the xfce cant found the MTP mountet Xperia S Flash. I try everything, install erveryting out of the "softwareverwaltung" (<- sorry, dont know the english word for, but, you know the tool to install and de-install software, libaries tools and so far) that have someting to do with MTP.. under Gnome: no Problem: the device is found - but under xfce - no way... and if i start Natutilus under xfce, the whole desktop will changet to a gnome Shell - and when i close it, dont change back to xfce - even a reboot dont help (i realy hate gnome) - so, are there any libarys or tools or something to show my Android Smartphone mountet on the xfce desktop?

 

thanks

 

lg

 

noob.fl

Print this item

  Filter your LAN with Squid/OpenDNS
Posted by: inittux - 2012-04-18, 12:36 PM - Forum: Linux News - Replies (2)


[Image: squid-logo.png]

 

I've been wanting to filter my own network traffic by running it through a proxy. So I did some reseach of how to

set it up and configure it. My first plan was to use squid and dansguardian but I found an easier way to do it.

Here's how I did it for those who come across this post.

 

I used squid and openDNS:

 

1. Install Squid: yum install squid

2. Configure Squid: add hostname, user/group, port, and DNS option

 

*Edit configuration file with you favorite editor: vi /etc/squid/squid.conf

a. Add: visible_hostname Proxy-name

b. Add: cache_effective_user squid

c. Add: cache_effective_group squid

d. Add: shutdown_lifetime 20 seconds

e. Add: port 3128 to: http_port 3128

f. Add DNS option: dns_nameservers 208.67.222.123 208.67.220.123 #OpenDNS Nameservers

g. uncommented: cache_dir ufs /var/spool/squid 100 16 256

h. save your file: :wq

 

3. Restart Squid: service squid restart

4. Edit your firewall: I used system-config-firewall-tui

a. Add tcp port 3128 and run through the options, no others needed and when done iptables will be restarted.

4. for the client side you need to setup the proxy for firefox or whatever browser you want. I use firefox.

a. Extra-->Options-->Advanced-->Network-->Settings: manual proxy configuration: set your ip/port: 192.168.1.100:3128

b. Klik Ok and try browsing(Test).

c. Done.

 

On my home situation I don't need to lock out the clients from being able to edit the browser options. But you can change

the rights if you need it for your situation:

 

Ubuntu:

1. chown root /usr/bin/gnome-network-properties

2. chmod ug-x /usr/bin/gnome-network-properties

 

Window: You probably only need to let your users login with normal users accounts.

 

You can also force all the pc's on your network to go through your proxy via iptables, but I didn't find it

necesarry. Another way of filtering your webcontent is by using dansguardian, but I find this way just as effective

and easier to do setup. With Dansguardian you can add your own blacklists/whitelists of sites. The only disadvantages I found

is that you have alot of configuring to do, cause when you set it up and add a blacklist. You have to whitelist everything that's

blacklisted in your blacklist folder. Example I wasn't able to access a topic on this forum because I had the word porn in the topic.

I'm real happy with OpenDNS and when you get redirected from a blocked porn site you can also click on send messages to

system administrator using your openDNS account email adress which you can set in the OpenDNS panel and the most important

thing is that it's free [img]<___base_url___>//public/style_emoticons/default/biggrin.png[/img]

Print this item

  Xubuntu has brought me closure
Posted by: Padeye242 - 2012-04-15, 02:30 AM - Forum: Hello - Replies (2)


I left college in 1995, where I had been studying to be a Graphic Designer. My dad wanted the best for me and offered to get me my first computer. It was an Apple 2cx. I screwed it up almost immediately, and it never worked quite right. I was never able to use it for its true purpose, and, it was about as useful as a paperweight. Every once in awhile it'd boot up, give me hope and go back to useless. I got to the point where I just hated Mac. Every once in awhile, someone would give me an older Mac and it'd make me nuts. I'd keep this one Mac locked in the closet as a way of punishing it. I hated iPods; because, the interface resembled Mac too much.

 

A friend gave me an Optiplex SX260 with a missing HD. He suggested that I make a Linux Pendrive. I started with Mint, then tried SUSE, then a few different Ubuntus led me to Xubuntu 10. I tried Xubuntu 11, but, the Optiplex freaked and crashed. I'm back with 10.

 

Linux and I have a love/hate relationship; but, its far better than my Unix relationship, though I have a jailbroken iPhone. A few of my friends are IT guys that've given me just about all that they can give. Recently, one of them suggested that I use the repository to find a package that'll do what iTunes will do. I thought, crap, what's a repository again? So, I Googled it, and, I found this place. Bear with me, I want to do better.

Print this item

  changing size of the dev/loop0 partition
Posted by: noob.fl - 2012-04-11, 10:25 AM - Forum: Just Starting Linux - Replies (4)


hi

 

im Installed my linux out from the windows with the wubi... and there the sice of the Installation partition is limitet to 30 gigs. is there any way to change the size of the dev/loop0 partition?

 

thanks for any answer

 

noob.fl

Print this item