debian

Bluetooth SDP - where is sdpd?

风流意气都作罢 提交于 2019-12-10 11:23:06
问题 Where is the Bluetooth Service Discovery Protocol (SDP) Daemon? I'm trying to register a bluetooth service on Debian V8.0 using bluez. I use example code at https://people.csail.mit.edu/albert/bluez-intro/. Everything goes well until I try sdp_connect( BDADDR_ANY, BDADDR_LOCAL, 0 ); which fails. After some digging, I find that the sdp daemon (sdpd) (to which it needs to connect) is not running and in fact does not even exist on my system. What I Tried: I have installed (apt-get) every

E: Cannot get debconf version. Is debconf installed?

别来无恙 提交于 2019-12-10 11:14:29
问题 I was run Debian on QEMU with ARMv8 arch. root@debian:/home/kennedy# apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: libgcc1 The following NEW packages will be installed: libgcc1 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. Need to get 0 B/31.3 kB of archives. After this operation, 114 kB of additional

How to connect pybluez RFCOMM server socket on Debian?

爷,独闯天下 提交于 2019-12-10 10:16:35
问题 I have these snippet in python with pybluez framework: from bluetooth import * server_sock=BluetoothSocket( RFCOMM ) server_sock.bind(("",PORT_ANY)) server_sock.listen(1) port = server_sock.getsockname()[1] uuid = "94f39d29-7d6d-437d-973b-fba39e49d4ee" advertise_service( server_sock, "SampleServer", service_id = uuid # service_classes = [ uuid, SERIAL_PORT_CLASS ], # profiles = [ SERIAL_PORT_PROFILE ], # protocols = [ RFCOMM_UUID ] ) print "Waiting for connection on RFCOMM channel %d" % port

Permission denied with wkhtmltopdf

拜拜、爱过 提交于 2019-12-10 10:12:38
问题 I have installed Wkhtmltopdf and I have this error when I execute him "/var/chroot/wkhtmltox-jessie-amd64: Permission denied". I search in Google but I have not found how to do ... repertory have this permission "drwxr-xr-x root root" and i execute him in web-server (apache) and Symfony. Error : The exit status code '126' says something went wrong: stderr: "sh: 1: /var/chroot/wkhtmltox-jessie-amd64: Permission denied " stdout: "" Can you help me ? 回答1: I encountered the same problem on the

Always permission 777 on mount shared cifs

痴心易碎 提交于 2019-12-10 10:09:01
问题 I have a little problem when I mount a SMB shared folder from a Synology NAS. I want to mount a shared folder with permissions: git:root 700 But the mounted folder always have permission set to 777 ( even after a chmod 700 without error) In my /etc/fstab I used this line: #uid=999 ---> git user //server/folder /mnt/artifacts cifs username=windowsUser,password=xxxxx,gid=0,uid=999,file_mode=0700,dir_mode=0700,iocharset=utf8 0 0 Do you know why I cannot set my rights to 700 ? I did a mistake ?

Apache in Debian Jessie - still get message You don't have permission to access / on this server

那年仲夏 提交于 2019-12-10 10:04:08
问题 The same virtual config i apache wheezy works right. For example: ServerName lgbs ServerAlias www.lgbs DocumentRoot /home/vdomain/app/web SetEnv APPLICATION_ENV "development" <Directory /home/vdomain/app/web> # enable the .htaccess rewrites AllowOverride All Order allow,deny Allow from All </Directory> But on Debian testing 'Jessie' i still get message: Forbidden You don't have permission to access / on this server. Apache/2.4.9 (Debian) Server at test Port 80 Of course a check file permision

best practice to backup config files Jenkins

浪子不回头ぞ 提交于 2019-12-10 08:54:00
问题 I am using Jenkins on remote Debian 7.8 . I want to update Debian 7.8 to 8.7. I tried to update and it went fine however Jenkins was broken and could not start the service. I tried everything but could find any solution. Finally I used purged command and it deleted previous configurations and builds. Now I restore the server and want to update again but I want a complete Jenkins backup of config and builds so restore it from last running instance. What's the best practice to backup the

Cannot resize AWS EBS root volume or create larger swap partition [closed]

半腔热情 提交于 2019-12-10 06:20:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I have a Amazon Web Services EC2 Debian 8.0 instance with an Elastic Block Storage (EBS) volume of 35GB. fdisk correctly shows the size but my root partition is still at 7.8G, although I tried to execute resize2fs. root@ip-10-0-3-164:/home/admin# fdisk -l Disk /dev/xvda: 35 GiB, 37580963840 bytes, 73400320

Error installing mysql2 gem on Debian Squeeze

杀马特。学长 韩版系。学妹 提交于 2019-12-10 03:59:56
问题 I got this "popular" error while installing mysql2 gem on Debian Squeeze: gem install mysql2 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb checking for rb_thread_blocking_region()... yes checking for rb_wait_for_single_fd()... no checking for mysql.h... yes checking for errmsg.h... yes checking for mysqld_error.h... yes creating Makefile make gcc -I.

修改debian系统默认语言

99封情书 提交于 2019-12-10 03:13:57
安装debian时选择了中文,结果发现在shell中文还是乱码,于是想把语言更改成英语。 方法如下: vi /etc/default/locale LANG="zh_CN.UTF-8" LANGUAGE="zh_CN:zh" 将其内容更改成 LANG="en_US.UTF-8" LANGUAGE="en_US:en" 本来en-US.UTF-8 没有安装,需要通过如下命令安装 dpkg-reconfigure locales 修改,在选项中选择en-US.UTF-8 按空格选中。然后选 ok 。 然后reboot即可。 debian7安装以后中文呈现麻将块一样的乱码,解决办法是在term中进行一下设置: aptitude install locales dpkg-reconfigure locales #配置编码进入选择:(空格键是选择,不是ENTER,选择完了后再ENTER) en_US.UTF8 zh_CN GB2312 zh_CN GBK GBK zh_CN UTF-8 UTF-8 #vi /etc/default/locale LANG=en_US.UTF-8 如果还有方块需要装字体: apt-get install ttf-arphic-uming apt-get install ttf-wqy-zenhei (以上命令需要ROOT权限,装字体需联网,同时需要配置好软件源